package cn.jsj.dispose;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.jsj.object.FrontContractIdSet;

/**
 * 加载所有的合同编号
 * @author LI
 *
 */
 public class ContractNumbersRequest extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
	 public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		//调试信息
		 cn.jsj.utils.SysLogger.PrintInfo("加载所有合同编号！！！！！！！！");

		 //前台合同编号集合队列
		 java.util.List<cn.jsj.object.FrontContractIdSet> fciList=new java.util.LinkedList<FrontContractIdSet>();

		 //获取合同编号队列
		 cn.jsj.dao.TblCaseInfoDAO tcid=new cn.jsj.dao.TblCaseInfoDAO();
		 fciList=tcid.getContractIdSet();

		 //转化为JSON型数据
		 cn.jsj.utils.ProduceJsonData pjd=new cn.jsj.utils.ProduceJsonData();
		 //1：没有意义
		 String jsonData=pjd.jsonFromList(fciList, 1);

		 //输出流
		 java.io.PrintWriter out=response.getWriter();

		 out.println(jsonData);
		 out.flush();
		 out.close();
	}
}